<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>游戏社区玩家中心</title>
    <script src="https://cdn.socket.io/4.5.0/socket.io.min.js"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/dashboard.css') }}">
</head>
<body>
    <div class="container">
        <!-- 玩家页面 -->
        <div id="player-page">
            <header>
                <div class="logo">
                    <i class="fas fa-gamepad"></i>
                    <span>游戏社区玩家中心</span>
                </div>
                <div class="user-info">
                    <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="玩家头像">
                    <div>
                        <div>游戏玩家</div>
                        <small>player@gamer.com</small>
                    </div>
                    <div class="user-actions">
                        <button class="btn btn-primary" id="logout-btn">
                            <i class="fas fa-sign-out-alt"></i> 退出
                        </button>
                    </div>
                </div>
            </header>

            <div class="tabs">
                <div class="tab" data-tab="start-battle">开始对战</div> 
                <div class="tab active" data-tab="announcements">公告</div>
                <div class="tab" data-tab="surveys">问卷</div>
                <div class="tab" data-tab="feedback">提交反馈</div>
                <div class="tab" data-tab="admin-application">申请管理员</div>
                <div class="tab" data-tab="my-feedbacks">我的反馈</div>
                <div class="tab" data-tab="admin-requests">我的申请</div>
            </div>

                        <div class="tab-content" id="start-battle-tab">
                <div class="section-title">
                    <i class="fas fa-swords"></i>
                    <span>开始对战</span>
                </div>

                <div class="battle-container">
                    <div class="battle-card">
                        <div class="battle-glare"></div>
                        <div class="battle-content">
                            <div class="battle-header">
                                <h3>战场准备就绪</h3>
                                <div class="status-indicator active"></div>
                            </div>
                            
                            <div class="battle-description">
                                <p><i class="fas fa-bolt"></i> 匹配系统已激活，等待您的指令</p >
                                <p><i class="fas fa-shield-alt"></i> 已连接到安全服务器</p >
                            </div>
                            
                            <div class="card-actions">
                                <a href=" 'static', filename='realtime/client/wgzz.html') }}" class="dashboard-button battle-button">
                                    <i class="fas fa-play"></i>
                                    进入战场
                                    <div class="button-pulse"></div>
                                </a >
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 公告 -->
            <div class="tab-content active" id="announcements-tab">
                <div class="section-title">
                    <i class="fas fa-bullhorn"></i>
                    <span>公告</span>
                </div>

                <div class="cards-grid" id="announcements-list">
                    <!-- 公告列表将通过JS动态生成 -->
                </div>
            </div>

            <!-- 问卷 -->
            <div class="tab-content" id="surveys-tab">
                <div class="section-title">
                    <i class="fas fa-poll"></i>
                    <span>问卷</span>
                </div>

                <div class="cards-grid" id="surveys-list">
                    <!-- 问卷列表将通过JS动态生成 -->
                </div>
            </div>

            <!-- 提交反馈 -->
            <div class="tab-content" id="feedback-tab">
                <div class="section-title">
                    <i class="fas fa-comment-medical"></i>
                    <span>提交反馈</span>
                </div>

                <div class="card">
                    <div class="card-content">
                        <div class="form-group">
                            <label for="feedback-content">反馈内容</label>
                            <textarea id="feedback-content" placeholder="请描述您遇到的问题或建议..."></textarea>
                        </div>
                        <button class="btn btn-primary" id="submit-feedback">
                            <i class="fas fa-paper-plane"></i> 提交反馈
                        </button>
                    </div>
                </div>
            </div>

            <!-- 申请管理员 -->
            <div class="tab-content" id="admin-application-tab">
                <div class="section-title">
                    <i class="fas fa-user-shield"></i>
                    <span>申请管理员</span>
                </div>

                <div class="card">
                    <div class="card-content">
                        <div class="form-group">
                            <label for="admin-application-reason">申请理由</label>
                            <textarea id="admin-application-reason" placeholder="请说明您为什么想成为管理员..."></textarea>
                        </div>
                        <button class="btn btn-primary" id="submit-admin-application">
                            <i class="fas fa-paper-plane"></i> 提交申请
                        </button>
                    </div>
                </div>
            </div>

            <!-- 我的反馈 -->
            <div class="tab-content" id="my-feedbacks-tab">
                <div class="section-title">
                    <i class="fas fa-history"></i>
                    <span>我的反馈</span>
                </div>

                <div class="cards-grid" id="my-feedbacks-list">
                    <!-- 反馈历史将通过JS动态生成 -->
                </div>
            </div>

            <!-- 我的申请 -->
            <div class="tab-content" id="admin-requests-tab">
                <div class="section-title">
                    <i class="fas fa-user-shield"></i>
                    <span>我的申请</span>
                </div>

                <div class="cards-grid" id="my-admin-requests-list">
                    <!-- 管理员申请列表将通过JS动态生成 -->
                </div>
            </div>
        </div>
    </div>

    <!-- 通知组件 -->
    <div class="notification" id="notification">
        <div class="notification-title">
            <i class="fas fa-bell"></i>
            <span id="notification-title">新通知</span>
        </div>
        <div class="notification-content" id="notification-content">通知内容</div>
    </div>

    <script src="{{ url_for('static', filename='js/dashboard.js') }}"></script>

    <!-- 反馈详情模态框 -->
    <div id="feedback-detail-modal" class="modal">
        <div class="modal-content">
            <span class="close-button">&times;</span>
            <div id="feedback-detail-content"></div>
        </div>
    </div>
</body>
</html>